<?php
require_once('../includes/config.inc');
require_once('../includes/variables.inc');

session_register($rights);

?>

<html>
<head>
<script language="javascript" type="text/javascript">
function openLink (href) {
   parent.frames['main'].location.href = href;
   parent.destroyContext();
}
</script>


<style type="text/css"><?php
include('../themes/'.$theme.'/context.css');
?></style>

</head><body>
<?php 
$srchQuery = mysql_query("SELECT * FROM `track` WHERE (`virtue`>'2') AND (`title` LIKE '%".$_REQUEST['s']."%' ) ");
while ($srch = mysql_fetch_array($srchQuery)) {
   printf('<small>"<a onClick="openLink(\'../main.php?mode=traffic&do=air_add&trkId=%s\')">%s</a>" by %s </small><br />', $srch[id], $srch[title], $srch[artist]);
}
?></body>
</html>